<?php

require_once __DIR__ . '/../bean/SemestreEJA.php';
require_once __DIR__ . '/abstract/AbstractDAO.php';

/**
 * DAO para objetos SemestreEJA
 *
 * @author Hyzandey
 */
class SemestreEJADAO extends AbstractDAO {

    const GET_ALL_QUERY =
            'select * from semestre order by semestre';
    
    const QUERY_COLUMN = 'semestre';

    public function find() {
        $this->query = self::GET_ALL_QUERY;

        $this->executaQuery();

        $resultList = array();

        while ($row = $this->proximaLinhaResultado()) {
            $resultList[] = new SemestreEJA($row[self::QUERY_COLUMN]);
        }
        
        return $resultList;
    }

}

?>
